﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_WareHouse_Create" %>

 <script type="text/javascript" >
     function ajaxJquery() {
         $(function () {
             $(".TextBox:first").focus();
             $(".Date").datepicker({ dateFormat: 'dd/mm/yy' });
         });
     }
      //Check ngày request date có lớn hơn ngày tạo hay không
      function CheckDeliveryAndCreateDate(source, arguments) {
          //So sanh ngay
          var objPublic = $("#<%=txtNgaysanxuat.ClientID %>").val().split('/');
          var objEnd = $("#<%=txtNgayhethan.ClientID %>").val().split('/');


          var PublicDate = new Date(objPublic[2], objPublic[1] - 1, objPublic[0], 0, 0, 0)
          var EndDate = new Date(objEnd[2], objEnd[2] - 1, objEnd[0], 0, 0, 0)

          //alert(PublicDate + "@" + EndDate);
          if (EndDate < PublicDate) {
              arguments.IsValid = false;
              return false;
          }
          else {
              return true;
          }
      }

</script>

<asp:UpdatePanel ID="uplCreateWarehouse" runat="server">
<ContentTemplate>
<div  class="BoxField">

    <div class="HeadTitle">
         <h3>
            <asp:Label ID="Label3" runat="server" Text="THÊM WAREHOUSE" /></h3>
     </div>
   <div class="DivRequired">
       <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
   </div>
   <div class="Error">
      <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />
  </div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblBatchno" CssClass="TextLabel" runat="server" Text="Batch No.:" /><span class="fieldRequired">&nbsp;</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBatchno"
                Display="None" ErrorMessage="Vui lòng nhập Batch No" SetFocusOnError="True" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtBatchno" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblItemcode" CssClass="TextLabel" runat="server" Text="Item Code:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtItemcode" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>

		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblVendorcode" CssClass="TextLabel" runat="server" Text="Vendor Code:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtVendorcode" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>


		<div class="DivRow" style="display:none">
		<div  class="DivLabel">
			<asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Nguồn:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtSource" CssClass="TextBox" runat="server" Text=""  />
		</div>
        </div>

		<div class="DivRow" style="display:none">
		<div  class="DivLabel">
			<asp:Label ID="Label2" CssClass="TextLabel" runat="server" Text="Pallet:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtPallet" CssClass="TextBox" runat="server" Text=""  />
		</div>

        </div>


		<div class="DivRow" style="display:none">
		<div  class="DivLabel">
			<asp:Label ID="Label42" CssClass="TextLabel" runat="server" Text="Lưu trong kho (số lượng):" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtStockOnHand" CssClass="TextBox" runat="server" Text=""  />
		</div>
        </div>

		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblNgaysanxuat" CssClass="TextLabel" runat="server" Text="Ngày sản xuất:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtNgaysanxuat" CssClass="TextBox Date" runat="server" Text="" placeholder='dd/MM/yyyy' />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblNgayhethan" CssClass="TextLabel" runat="server" Text="Ngày hết hạn:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtNgayhethan" CssClass="TextBox Date" runat="server" Text=""  placeholder='dd/MM/yyyy' />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblKhoiluongthetich" CssClass="TextLabel" runat="server" Text="Khối lượng / Thể tích:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtKhoiluongthetich" CssClass="TextBox" runat="server" Text="" /> 
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label4" CssClass="TextLabel" runat="server" Text="Đơn vị:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtBUN" CssClass="TextBox" runat="server" Text=""  />
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblQuycachdonggoi" CssClass="TextLabel" runat="server" Text="Qui cách đóng gói:" />

		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtQuycachdonggoi" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>

		<div class="DivRow">
		<div class="DivLabel" >&nbsp;&nbsp;&nbsp;</div>
		<div class="DivTextBox" ><div style="float:left" >
			<asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
			&nbsp;<asp:Button ID="btnSaveAndNew" runat="server" CssClass="btn" Text=" Lưu &amp; Làm mới" />
			&nbsp;<asp:Button ID="btnReset" runat="server" CausesValidation="false" CssClass="btn" Text="Làm lại" /></div><div style=" float:right; text-align: right">
			 &nbsp;<asp:ImageButton ID="btnBack" ImageAlign ="AbsMiddle" ToolTip="Quay lại" runat="server" ImageUrl="~/images/back.png" CausesValidation="false" /></div>
		</div>
		</div>

</div>
<div style="display: none">
<asp:HiddenField ID="hidID" Value="0" runat="server" /></div>
</ContentTemplate>
</asp:UpdatePanel>
